package org.zxp.effectiveJava.serializable;

import java.io.Serializable;

public class MySingleton implements Serializable{
    private MySingleton(){}

    private static final MySingleton INSTANCE = new MySingleton();

    public static MySingleton getInstance(){
        return INSTANCE;
    }
    private Object readResolve(){
        return INSTANCE;
    }
}
